<template>
	<view>
		<view class="smart-container">1. 容器 </view>
		<view class="smart-panle-title" @click="goDetailPage('view')"><text>view视图</text></view>
<!-- 		<view class="smart-panle-title" @click="goDetailPage('scroll-view')"><text>scroll-view滚动视图</text></view>
		<view class="smart-panle-title" @click="goDetailPage('swiper')"><text>swioer可滑动视图</text></view> -->

		<view class="smart-container">2. 基础内容 </view>
		<view class="smart-panle-title" @click="goDetailPage('rich-text')"><text>text富文本编辑</text></view>
		<view class="smart-panle-title" @click="goDetailPage('icon')"><text>icon图标</text></view>

		<view class="smart-container" >3. 表单组件 </view>
		<view class="smart-panle-title" @click="goDetailPage('button')"><text>button按钮</text></view>
		<view class="smart-panle-title" @click="goDetailPage('checkbox')"><text>checkbox多选框</text></view>
		<view class="smart-panle-title " @click="goDetailPage('picker')"><text>label标签组件</text></view>
		<view class="smart-panle-title" @click="goDetailPage('input')"><text>input输入框</text></view>
		<view class="smart-panle-title" @click="goDetailPage('form')"><text>form表单</text></view>
		
		<view class="smart-container">4. 导航组件</view>
		<view class="smart-panel-title" @click="goDetailPage('navigator')"><text>navigator导航</text></view>
		<view class="smart-panel-title" @click="goDetailPage('cityExplore')"><text>城市探索</text></view>
	</view>

</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goDetailPage(e) {
				if (typeof e === 'string') {
					uni.navigateTo({
						url: '/pages/component/' + e + '/' + e,
					});
				} else {
					uni.navigateTo({
						url: e.url
					})
				}

			}
		}
	}
</script>

<style>

</style>